package com.superteam.zzl.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;

import java.util.List;

/**
 * Created by Administrator on 2017/1/12.
 */

public class MyDynamicFragmentAdapter extends BaseFragmentPagerAdapter {
    private String[] titles;

    public MyDynamicFragmentAdapter(FragmentManager fm, List<Fragment> list, String[] titles) {
        super(fm, list);
        this.titles = titles;
    }


    @Override
    public CharSequence getPageTitle(int position) {
        return titles[position];
    }
}
